package org.ioc.com.book_test1.service;

import org.ioc.com.book_test1.mapper.UserInfoMapper;
import org.ioc.com.book_test1.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo selectByName(String userName) {
        UserInfo userInfo=userInfoMapper.queryByName(userName);
        return userInfo;
    }
}
